﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
using System.Data;
using System.Collections;
using DotNet.Common;
namespace DotNet.Business
{
    public class Class1
    {
        public DataTable aa(int pageindex, int pagesize)
        {  DALhelp dd = new DALhelp();
            string CKey = "dotnet"+pageindex;
            DataTable ad = null;
            if (CKey != "")
            {
                if (!CacheUtil.IsExist(CKey))
                {
                    CacheUtil.Insert(CKey, dd.aa(pageindex, pagesize), 10 * 24 * 60 * 60);
                }
            }
            ad = CacheUtil.Read(CKey) as DataTable;
            return ad;
          
        }
        public int bb()
        {
            DALhelp dd = new DALhelp();
            return dd.bb();
        }
    }
  

}
